<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="module">
    // 通过解构赋值取出模块对象中的a/b属性,不可以深度嵌套解构
    // 重命名用as， 不能用：
    import {a} from './m2.js'
    console.log(a,'-----');
    // import {a, b} from './m2.js';
    // console.log(a, b);

    // 引入默认的
    import{ default as c} from './m2.js' //完整写法
    import yyy from './m2.js' // 简写
    console.log(c, yyy, '++++');
    
    // 引入全部
    import *  as ggg from './m2.js'
    console.log(ggg);
   
    </script>
</body>
</html>